﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace com.sharepointutils.application.Forms
{
    public partial class XMLViewerForm : Form
    {
        public void Init()
        {
            InitializeComponent();
            this.Tag = "XML Viewer";
        }

        public XMLViewerForm()
        {
            Init();
        }

        public XMLViewerForm(String xml)
        {
            Init();

            //XMLViewerSettings viewerSetting = new XMLViewerSettings
            //{
            //    AttributeKey = Color.Red,
            //    AttributeValue = Color.Blue,
            //    Tag = Color.Blue,
            //    Element = Color.DarkRed,
            //    Value = Color.Black,
            //};
            //xmlViewer_main.Settings = viewerSetting; 
            //xmlViewer_main.Text = xml;
            //xmlViewer_main.Process(false);
        }

    }
}
